javascript remove last characters from string

51

javascript remove last characters from string -

const text = 'abcdef'
const editedText = text.slice(0, -1) //'abcde'

Comments

Submit
0 Comments